.app {
  font-size: 0.16rem;
  width: 100vw;
  height: 100vh;
}
@mixin changeRow {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

header {
  font-size: 0.16rem;
  background: #d43c33;
  height: 0.6rem;
  color: #fefefe;
  position: relative;
  text-align: center;
  line-height: 0.6rem;

  a {
    position: absolute;
    left: 0.1rem;
    top: 0;
    font-size: 0.2rem;
    transform: scaleY(1.6);
    color: #fefefe;
  }
}

main {
  padding-top: 0.2rem;

  .search {
    position: relative;
    height: 0.5rem;
    display: flex;
    align-items: center;
    color: #c9c9ca;
    border: 0.01rem solid transparent;
    border-top-color: #ebebeb;
    border-bottom-color: #ebebeb;
  }

  input {
    display: block;
    margin: 0 auto;
    height: 0.3rem;
    width: 90%;
    border-radius: 0.15rem;
    border: none;
    outline: none;
    background: #ebecec;
    padding-left: 0.3rem;
    font-size: 0.14rem;

    &::placeholder {
      color: #c9c9ca;
      font-size: 0.14rem;
    }
  }

  .icon-search {
    // display: inline-block;
    position: absolute;
    // inset: 0;
    top: 0;
    left: 0.1rem;
    transform: rotateY(180deg);
    height: 100%;
    line-height: 0.42rem;
    width: 0.3rem;
    font-size: 0.2rem;
  }

  .cancel {
    font-weight: 600;
    position: absolute;
    right: 0.3rem;
    height: 0.14rem;
    width: 0.14rem;
    line-height: 0.12rem;
    text-align: center;
    border-radius: 0.07rem;
    background: #bcbdbd;
    color: #ebeceb;
    font-size: 0.13rem;
  }

  .hots {
    padding: 0.2rem;

    h3 {
      font-size: 0.12rem;
      color: #666666;
    }

    .all {
      display: flex;
      flex-wrap: wrap;
      align-content: start;
      padding-top: 0.1rem;

      span {
        padding: 0.02rem 0.1rem;
        border: 0.01rem solid #e7e8ec;
        margin: 0.05rem;
        height: 0.3rem;
        line-height: 0.24rem;
        border-radius: 0.15rem;
        color: #593333;
        font-size: 0.14rem;
      }
    }
  }

  .advice {
    padding-left: 0.1rem;
    color: #b1b1b2;

    h3 {
      font-size: 0.15rem;
      color: #507dc3;
      line-height: 0.5rem;
      border-bottom: 0.01rem solid #f1f2f3;
      width: 3rem;
      @include changeRow;
    }

    p {
      display: flex;
      line-height: 0.5rem;

      i {
        position: static;
        font-size: 0.26rem;
        font-weight: normal;
        width: 0.13rem;
        color: #b1b1b2;
        margin-right: 0.1rem;
      }

      span {
        flex: 1;
        border-bottom: 0.01rem solid #f1f2f3;
        color: #333;
      }
    }
  }

  .result {
    padding-left: 0.1rem;
    color: #b1b1b2;

    .item {
      display: flex;
      flex-direction: column;
      height: 0.5rem;
      flex-wrap: wrap;
      justify-content: center;
      border-bottom: 0.01rem solid #f1f2f3;
    }

    h3 {
      color: #333;
      @include changeRow;
      width: 3rem;
      font-size: 0.14rem;
    }

    p {
      font-size: 0.12rem;
      color: #888;
      @include changeRow;
      width: 3rem;
    }

    i {
      align-self: end;
      color: #aaa;
      border: 0.01rem solid #aaa;
      width: 0.18rem;
      height: 0.18rem;
      border-radius: 0.09rem;
      line-height: 0.13rem;
      text-align: left;
      font-size: 0.3rem;
      padding-left: 0.03rem;
      display: flex;
      justify-content: center;
      margin-right: 0.1rem;
    }
  }

  .history {
    padding: 0 0.1rem;

    p {
      height: 0.5rem;
      border-bottom: 0.01rem solid #f1f2f3;
      line-height: 0.49rem;
      display: flex;

      span {
        flex: 1;
      }
    }

    .icon-cha {
      margin-left: auto;
      font-size: 0.3rem;
      font-weight: normal;
      color: #999899;
    }
  }
}

.hide {
  display: none !important;
}
